# {{ ansible_managed }}
#
# SnapRAID Configuration File
# DO NOT EDIT UNLESS YOU KNOW WHAT YOU'RE DOING

# Data drives
{% for drive in snapraid_data_drives %}
data d{{ loop.index }} {{ drive.path }}
{% endfor %}

# Parity locations
{% for drive in snapraid_parity_drives %}
{{ loop.index}}-parity {{ drive.path }}/snapraid.parity
{% endfor %}

# Content file locations
{% for file in snapraid_content_files %}
content {{ file }}
{% endfor %}
{% for drive in snapraid_data_drives %}
{% if drive.content %}
content {{ drive.path }}/snapraid.content
{% endif %}
{% endfor %}
{% for drive in snapraid_parity_drives %}
{% if drive.content %}
content {{ drive.path }}/snapraid.content
{% endif %}
{% endfor %}

{% if snapraid_excluded_files is defined %}
# Excluded files
{% for file in snapraid_excluded_files %}
exclude {{ file }}
{% endfor %}
{% endif %}

{% if snapraid_autosave is defined %}
# Autosave
autosave {{ snapraid_autosave }}
{% endif %}
